from django.utils import timezone
from django.db import models


class User(models.Model):
    mail = models.EmailField(max_length=254, unique=True, verbose_name="邮箱")
    password = models.CharField(max_length=254, default="", verbose_name="密码")
    nickname = models.CharField(max_length=254, null=True, blank=True, default="请设置昵称", verbose_name="昵称")
    iconUrl = models.CharField(max_length=254, null=True, blank=True, default="default", verbose_name="头像URL")
    createTime = models.DateTimeField(default=timezone.now, verbose_name='创建时间', null=False, blank=False)
